package com.sino.config.server.bean.acl;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Table;

import com.sino.config.server.bean.Entity;

/**
 * 
 * @author nutz-matic
 * 
 */
@Table("t_role")
@Comment("角色表")
public class Role extends Entity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Column("r_name")
	@Comment("角色名称")
	@NotNull(message = "角色名称不能为空")
	private String name;

	@Column("r_descr")
	@Comment("角色描述信息")
	@ColDefine(width = 200)
	@Size(max = 200, message = "描述信息不能超过200个字符")
	private String description;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

}